package com.twu.biblioteca.controller;

import com.twu.biblioteca.model.Item;
import com.twu.biblioteca.model.Library;
import com.twu.biblioteca.ui.MovieView;
import com.twu.biblioteca.util.Messages;

import java.util.List;

/**
 * Created by madhu on 1/5/14.
 */
public class MovieController extends ItemController {

    private MovieView movieView;

    public MovieController() {
        movieView = new MovieView();
    }

    public void checkoutMovie(String movieName, List<Item> movies) {
        if(checkoutItem(movieName, movies))
            movieView.displayMessage(Messages.successfulMovieCheckoutMessage);
        else
            movieView.displayMessage(Messages.unsuccessfulMovieCheckoutMessage);
    }

}
